package network

import (
	"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
	tvpc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312"
)

type CCNGreeter interface {
	CCN(region string) CCNInterface
}

type CCNInterface interface {
}

type ccn struct {
	network *Network
	region  string
	client  *tvpc.Client
}

func newCCN(network *Network, region string) CCNInterface {
	v := &ccn{
		network: network,
		region:  region,
	}
	cpf := profile.NewClientProfile()
	cpf.HttpProfile.Endpoint = string(VpcEndPoint)
	client, _ := tvpc.NewClient(v.network.Credential(), v.region, cpf)
	v.client = client
	return v
}
